package com.example.springbootvuetest.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.springbootvuetest.base.Result;
import com.example.springbootvuetest.entity.User;
import com.example.springbootvuetest.entity.dto.UserDto;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface UserService extends IService<User> {
    boolean updateUserStatusById(Integer id, Integer status);

    boolean updatePassword(String newPassword, String oldPassword, String id);

    Result<UserDto> login(String accountNumber, String userPassword);

    Result register(User user);
}
